import jieba
txt = open("三国演义.txt",'r',encoding= 'gb18030').read();
words = jieba.lcut(txt)
counts = {}
for word in words:
    if len(word) ==1:
        continue
    else:
        counts[word] = counts.get(word,0) + 1
print(counts)